package com.phamloc.fastconnect.objects;

import org.andengine.entity.scene.menu.item.IMenuItem;
import org.andengine.entity.sprite.AnimatedSprite;
import org.andengine.opengl.vbo.VertexBufferObjectManager;

import com.phamloc.fastconnect.manager.ResourcesManager;

public class AnimationSpriteMenuItem extends AnimatedSprite implements
		IMenuItem {
	private int ID = 0;
	public AnimationSpriteMenuItem(int id, float pX, float pY, VertexBufferObjectManager vbo) {
		super(pX, pY, ResourcesManager.getInstance().playTiledRegion, vbo);
		this.ID = id;
		final long[] PLAY_ANIMATE = new long[] { 1000, 1000};
        
	    animate(PLAY_ANIMATE, 0, 1, true);
	}

	@Override
	public int getID() {
		return ID;
	}

	@Override
	public void onSelected() {
		// TODO Auto-generated method stub

	}

	@Override
	public void onUnselected() {
		// TODO Auto-generated method stub

	}

}
